package com.yang.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "verification_code")
public class VerificationCodeEntity {
    @Id
    @Column(name = "id")
    private long id;

    @Column(name = "emil")
    private String emil;

    @Column(name = "code")
    private String code;

    @Column(name = "time")
    private long time;

    public VerificationCodeEntity() {
    }

    /**
     *
     * @param id
     * @param emil
     * @param code
     * @param time
     */
    public VerificationCodeEntity(long id,String emil,String code,long time) {
        this.id = id;
        this.emil = emil;
        this.code = code;
        this.time = time;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getEmil() {
        return emil;
    }

    public void setEmil(String emil) {
        this.emil = emil;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "VerificationCodeEntity{" +
                "id=" + id +
                ", emil='" + emil + '\'' +
                ", code='" + code + '\'' +
                ", time=" + time +
                '}';
    }
}
